

//
//  MineHeaderView.m
//  KCFurProject
//
//  Created by ios程序员 on 15/11/6.
//  Copyright (c) 2015年 ios程序员. All rights reserved.
//

#import "MineHeaderView.h"

@implementation MineHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat ww = self.frame.size.width;
        CGFloat hh = self.frame.size.height;
        self.fuKuanButto = [UIButton buttonWithType:UIButtonTypeCustom];
        self.fuKuanButto.frame = CGRectMake(0, 0, ww/4, hh);
        [self.fuKuanButto setImage:[UIImage imageNamed:@"dfk"] forState:UIControlStateNormal];
        [self addSubview:self.fuKuanButto];
        
        self.faHuoButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.faHuoButton.frame = CGRectMake(ww/4, 0, ww/4, hh);
        [self.faHuoButton setImage:[UIImage imageNamed:@"dfh"] forState:UIControlStateNormal];
        [self addSubview:self.faHuoButton];
        
        self.shouHuoButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.shouHuoButton.frame = CGRectMake(ww/2, 0, ww/4, hh);
        [self.shouHuoButton setImage:[UIImage imageNamed:@"dsh"] forState:UIControlStateNormal];
        [self addSubview:self.shouHuoButton];
        
        
        self.pingJiaButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.pingJiaButton.frame = CGRectMake(ww/4*3, 0, ww/4, hh);
        [self.pingJiaButton setImage:[UIImage imageNamed:@"dpj"] forState:UIControlStateNormal];
        [self addSubview:self.pingJiaButton];
        
        self.fuKuanLabel = [[UILabel alloc] initWithFrame:CGRectMake(28*WIDTH, hh-70, ww/4, hh)];
        self.fuKuanLabel.text = @"待付款";
        self.fuKuanLabel.font = [UIFont systemFontOfSize:13];
        [self addSubview:self.fuKuanLabel];
        
        self.faHuoLabel = [[UILabel alloc] initWithFrame:CGRectMake(ww/4+28*WIDTH, hh-70, ww/4, hh)];
        self.faHuoLabel.text = @"待发货";
        self.faHuoLabel.font = [UIFont systemFontOfSize:13];
        [self addSubview:self.faHuoLabel];

        self.shouHuoLabel = [[UILabel alloc] initWithFrame:CGRectMake(ww/2+28*WIDTH,hh-70, ww/4, hh)];
        self.shouHuoLabel.text = @"待收货";
        self.shouHuoLabel.font = [UIFont systemFontOfSize:13];
        [self addSubview:self.shouHuoLabel];

        self.pingJiaLabel = [[UILabel alloc] initWithFrame:CGRectMake(ww/4*3+28*WIDTH, hh-70, ww/4, hh)];
        self.pingJiaLabel.text = @"待评价";
        self.pingJiaLabel.font = [UIFont systemFontOfSize:13];
        [self addSubview:self.pingJiaLabel];

    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
